home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scribusapp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-03-22  |  3.3 KB  |  101 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.     begin                : May 2005
  9.     copyright            : (C) 2005 by Craig Bradney
  10.     email                : cbradney@zip.com.au
  11. ***************************************************************************/
  12.  
  13. /***************************************************************************
  14. *                                                                         *
  15. *   ScMW program is free software; you can redistribute it and/or modify  *
  16. *   it under the terms of the GNU General Public License as published by  *
  17. *   the Free Software Foundation; either version 2 of the License, or     *
  18. *   (at your option) any later version.                                   *
  19. *                                                                         *
  20. ***************************************************************************/
  21.  
  22. #ifndef SCRIBUSAPP_H
  23. #define SCRIBUSAPP_H
  24. #include <QApplication>
  25. #include <QString>
  26.  
  27. #include "scribusapi.h"
  28. class ScribusCore;
  29. class ScribusMainWindow;
  30.  
  31. class SCRIBUS_API ScribusQApp : public QApplication
  32. {
  33.     Q_OBJECT
  34.  
  35.     public:
  36.         ScribusQApp( int & argc, char ** argv );
  37.         ~ScribusQApp();
  38.         int init();
  39.         void initLang();
  40.         void parseCommandLine();
  41.         void changeGUILanguage(const QString & lang);
  42.         /*!
  43.         \author Franz Schmid
  44.         \author Alessandro Rimoldi
  45.         \date Mon Feb  9 14:07:46 CET 2004
  46.         \brief If the lang argument is empty, returns the value in the locales
  47.         The lang is always a two character code, except for "en_GB" where
  48.         the whole string is returned. For all the other locales starting
  49.         with "en", no locale is returned.
  50.         (Inspired from Klocale.cpp)
  51.         \param lang QString a two letter string describing the lang environement
  52.         \retval QStringList A string describing the language environement
  53.         */
  54.         QStringList getLang(QString lang);
  55.         /*!
  56.         \author Franz Schmid
  57.         \author Alessandro Rimoldi
  58.         \date Mon Feb  9 14:07:46 CET 2004
  59.         \brief Loads the translations for Scribus and for the Plugins
  60.         \param langs QString a two letter string describing the lang environement
  61.         */
  62.         void installTranslators(const QStringList & langs);
  63.  
  64.         const ScribusCore* core() {return m_ScCore;}
  65.         static bool useGUI;
  66.         void neverSplash(bool splashOff);
  67.         bool neverSplashExists();
  68.         const QString& currGUILanguage() {return GUILang;};
  69.  
  70.     private:
  71.         ScribusCore* m_ScCore;
  72.         void showHeader();
  73.         void showVersion();
  74.         /*!
  75.         \author Franz Schmid
  76.         \author Alessandro Rimoldi
  77.         \date Mon Feb  9 14:07:46 CET 2004
  78.         \brief If no argument specified the lang, returns the one in the locales
  79.         */
  80.         void showUsage();
  81.         /*!
  82.         \author Craig Bradney
  83.         \date Wed Nov 18 2004
  84.         \brief Instantiates the Language Manager and prints installed languages with brief instructions around
  85.         */
  86.         void showAvailLangs();
  87.  
  88.         QString lang;
  89.         QString GUILang;
  90.         bool showSplash;
  91.         bool showFontInfo;
  92.         bool showProfileInfo;
  93.         bool swapDialogButtonOrder;
  94.         //! \brief If is there user given prefs file...
  95.         QString prefsUserFile;
  96.         QList<QString> filesToLoad;
  97.         QString fileName;
  98. };
  99.  
  100. #endif
  101.